home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / ImageWriter--custom dialogs / OldApp.a < prev    next >
Encoding:
Text File  |  1996-03-20  |  2.0 KB  |  88 lines  |  [TEXT/MPS ]

  1. ;------------------------------------------------------------------------------
  2. ;
  3. ;    FILENAME
  4. ;        OldApp.a
  5. ;
  6. ;    DESCRIPTION
  7. ;        Contains the code necessary to dispatch from a routine in one code
  8. ;        module to a code segment in another module or within the same module
  9. ;
  10. ;    COPYRIGHT
  11. ;        Copyright © Apple Computer, Inc. 1992-1994
  12. ;        All rights reserved. 
  13. ;
  14. ;    MODIFICATION HISTORY
  15. ;
  16. ;        07/24/92        Tom Dowdy    New Today
  17. ;        12/20/93        dmh            Sync'd with the shipping 1.0b3 GX driver.
  18. ;        12/22/93        dmh            Added custom dialog code.
  19. ;        12/09/94        dmh            Corrected old dialogs' global data usage.
  20. ;                                    Added assembly routines to store/access
  21. ;                                    global data handle.
  22. ;
  23. ;--------------------------------------------------------------------------------
  24.  
  25.                     CASE     OBJ
  26.                     STRING    ASIS
  27.  
  28. SD_JumpTable        PROC    EXPORT
  29.                     DC.L    0
  30.     
  31. ; Compatibility messages
  32.  
  33.                     IMPORT            SD_ConvertPrintRecordTo
  34.                     JMP                SD_ConvertPrintRecordTo
  35.         
  36.                     IMPORT            SD_ConvertPrintRecordFrom
  37.                     JMP                SD_ConvertPrintRecordFrom
  38.         
  39.                     IMPORT            SD_PrintRecordToJob
  40.                     JMP                SD_PrintRecordToJob
  41.         
  42.                     IMPORT            SD_PrValidate
  43.                     JMP                SD_PrValidate
  44.         
  45.                     IMPORT            SD_PrJobInit
  46.                     JMP                SD_PrJobInit
  47.         
  48.                     IMPORT            SD_PrStlInit
  49.                     JMP                SD_PrStlInit
  50.         
  51.                     IMPORT            SD_PrDlgMain
  52.                     JMP                SD_PrDlgMain
  53.  
  54.  
  55. ;    GlobalDataHdl is storage for a handle to our old application dialogs'
  56. ;    global data.  We save and retrieve this value using the routines below.
  57. ;
  58.  
  59. GlobalDataHdl        DC.L    0
  60.  
  61.                     EXPORT    SetDialogGlobals
  62.                     EXPORT    GetDialogGlobals
  63.  
  64.  
  65. ;    SetDialogGlobals saves the passed parameter in our global data storage
  66. ;    (above).  We call this routine from CreateAndStoreGlobals in
  67. ;    OldApp.c.
  68. ;
  69.  
  70. SetDialogGlobals    LINK    A6,#0
  71.                     LEA        GlobalDataHdl,A0
  72.                     MOVE.L    8(A6),(A0)
  73.                     UNLK    A6
  74.                     RTS
  75.  
  76.  
  77. ;    GetDialogGlobals retrieves the handle stored in our global data
  78. ;    storage (above).  We call this routine from several routines in
  79. ;    OldApp.c.
  80. ;
  81.  
  82. GetDialogGlobals    LEA        GlobalDataHdl,A0
  83.                     MOVE.L    (A0),D0
  84.                     RTS
  85.  
  86.                     ENDPROC
  87.     END
  88.